<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<portlet:defineObjects/>

<link href="/Todo-portlet/css/todo.css" rel="stylesheet" type="text/css" />

<portlet:actionURL var="actionUrl">
  <portlet:param name="action" value="editCategory"/>
</portlet:actionURL>

<portlet:renderURL var="todosUrl">
  <portlet:param name="action" value="todos"/>
</portlet:renderURL>

<table width="100%">
    <tr><td align="right" valign="middle">
            <div id="menu">
                &#091;<a href="${todosUrl}">Cancel</a>&#093;
            </div>
        </td>
    </tr>
    <tr>
        <td>
            <form:form method="POST" action="${actionUrl}" commandName="command">
            <form:hidden path="id" />
            <form:hidden path="owner" />
                <table>
                    <tr>
                        <td><b>Name:</b>&nbsp;</td>
                        <td>
                            <form:input path="name" size="30" maxlength="30"/>
                            &nbsp;<form:errors path="name" cssClass="error"/>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <br/>
                            <input type="submit" value="Save">&nbsp;
                        </td>
                    </tr>
                </table>
            </form:form>
        </td>
    </tr>
</table>
